package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.Member;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;

public interface RoleService {
    public List<Role> findAll();
    public void delete(Integer id);
    public void edit(Role role);
    public Role findById(Integer id);
    public List<Integer> findRoleIdsByUserId(Integer id);
    public PageResult pageQuery(QueryPageBean queryPageBean);

    public Map<String,List> findMaxAll();
    public void add(Role role, Integer[] PermissionIds,Integer[] MenuIds);
    public List<Integer> findPermissionIdsByRoleId(Integer id);
    public List<Integer> findMenuIdsByRoleId(Integer id);
    public List<Role> findByIds(Integer id);

    public List<Integer> findPermissionByRole(Integer id);

    public void edit(Role role, Integer[] permissionIds, Integer[] menuIds);
}
